derivative by first principle